import React from 'react';

var HelloMessage = React.createClass({
    getInitialState: function () {
        return {
            value: 'Hello World'
        }
    },
    bandleChange: function (event) {
        this.setState({
            value: event.target.value
        })
    },
    render: function(){
        var value = this.state.value;
        return (
            <div>
                <input type="text" value={value} onChange={this.bandleChange}/>
                <h4>{value}</h4>
            </div>
        )
    }
})

export default HelloMessage